package mcore

type CmdID struct {
	ID int64 `json:"id" form:"id" uri:"id"  binding:"required"`
}

type CmdIDStr struct {
	ID string `json:"id"  form:"id" uri:"id"  binding:"required"`
}

type CmdStat struct {
	ID      string `json:"id"  binding:"required"`
	NewStat bool   `json:"newStat" `
	OldStat bool   `json:"oldStat" `
}
type CmdCode struct {
	Code string `json:"code"  form:"code" uri:"code" binding:"required"`
}
type CmdCodeList struct {
	CodeList []string `json:"codeList"  form:"code" uri:"code" binding:"required"`
}
type Filter struct {
	Col  string `json:"col"`
	Type string `json:"type"`
	Val  any    `json:"val"`
	Vals []any  `json:"vals"`
}
type CommFilter struct {
	Cols  []string `json:"cols"`
	Value string   `json:"value"`
}
type CmdCommQuery struct {
	Filters []Filter   `json:"filters"`
	Comm    CommFilter `json:"comm"`
}
type CmdCommPage struct {
	CmdCommQuery
	CmdPage
}
